package com.hgsoft.pubsv.component.example;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.ConfigurableApplicationContext;

import com.hgsoft.pubsv.component.apifilter.EnableSecurity;
import com.hgsoft.pubsv.component.xxlconf.EnableXxlConf;
import com.hgsoft.pubsv.component.xxljob.EnableXxlJob;
import com.hgsoft.pubsv.component.xxlrpc.EnableXxlRpcInvoker;
import com.hgsoft.pubsv.component.xxlrpc.EnableXxlRpcProvider;

/**
 * 启动页面
 *
 * @author saint-yeb
 */
//@EnableXxlRpcInvoker
//@EnableXxlRpcProvider
//@EnableXxlConf
//@EnableXxlJob
@EnableSecurity
@SpringBootApplication(scanBasePackages = "com.hgsoft.pubsv")
@Slf4j
public class ExampleApplication {

    public static void main(String[] args) {
        SpringApplication application = new SpringApplication(ExampleApplication.class);
        application.setBannerMode(Banner.Mode.OFF);
        ConfigurableApplicationContext context = application.run(args);
    }
}
